<script setup lang="ts">
import { IComptEventParam } from "@interface";

interface FormGroupProps{
  name: string;
  error: string;
  label: string;
}
interface FormGroupEmit{
  (name: 'componentEvent', value: IComptEventParam): void
}
const props = withDefaults(defineProps<FormGroupProps>(), {});
const emit = defineEmits<FormGroupEmit>();

</script>

<template>
  <a-form-item :name="name" :label="label" :help="error" :validateStatus="error ? 'error': 'validating'">
    <slot></slot>
  </a-form-item>
</template>

<style scoped>

</style>